#include"BTNode.h"

void test()
{
	//BTNode* node1 = BuyNode(1);
	//BTNode* node2 = BuyNode(2);
	//BTNode* node3 = BuyNode(3);
	//BTNode* node4 = BuyNode(4);
	//node1->left = node2;
	//node1->right = node3;
	//node2->left = node4;
	//BTPrevOrder(node1);//1 2 4 # # # 3 # # 
	//printf("\n");
	//BTInOrder(node1);//# 4 # 2 # 1 # 3 #
	//printf("\n");
	//BTPostOrder(node1);// # # 4 # 2 # # 3 1
	//printf("\n");
	//BTLevelOrder(node1);//1 2 3 4
	//BTDestroy(&node1);
	char arr[] = "ABC###D##";
	int i = 0;
	BTNode* node = BTCreate(arr, &i);
	BTPrevOrder(node);
	BTDestroy(&node);
}

int main()
{
	test();
	return 0;
}